﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Shop.Service;
using Shop.Persistence;

namespace Shop.Service
{
    public class UserInfoSrv:IUserInfoSrv
    {
        private UserInfoSqlMapDao _UserInfoMap;
        public UserInfoSrv(UserInfoSqlMapDao UserInfoMap)
        {
            this._UserInfoMap = UserInfoMap;
        }
        #region IUserInfoSrv 成员

        public Shop.Domain.UserInfo GetUserInfoDo(string Id)
        {
            return _UserInfoMap.GetUserInfoDo(Id);
        }

        public IList<Shop.Domain.UserInfo> GetUserInfoList()
        {
            return _UserInfoMap.GetUserInfoList();
        }

        public IList<Shop.Domain.UserInfo> NoQueryForListByPage(int skipResult, int maxResult)
        {
            return _UserInfoMap.NoQueryForListByPage(skipResult, maxResult);
        }

        public IList<Shop.Domain.UserInfo> DynamicQuery(string Field, string Operator, string Value, int skipResults, int maxResults)
        {
            return _UserInfoMap.DynamicQuery(Field, Operator, Value, skipResults, maxResults);
        }

        public void InsertRecord(Shop.Domain.UserInfo UserInfo)
        {
            _UserInfoMap.InsertRecord(UserInfo);
        }

        public void DeleteRecord(string ID)
        {
            _UserInfoMap.DeleteRecord(ID);
        }

        public void UpdateRecord(Shop.Domain.UserInfo UserInfo)
        {
            _UserInfoMap.UpdateRecord(UserInfo);
        }

        #endregion
    }
}
